import {Button, Modal} from 'antd';
import React, {useEffect, useState} from 'react'


const MyFrameModal = ({onCancel, visible, src}) => {

  return (
    <>
      <Modal
        maskClosable={false}
        title="查看详情"
        width={'90%'}
        visible={visible}
        onCancel={onCancel}
        footer={<Button type="primary" onClick={onCancel}>关闭</Button>}
      >
        {src && <iframe frameBorder={0} height={700} width={'100%'} src={src} />}
      </Modal>
    </>
  );

};

export default MyFrameModal
